package com.iman.manjusri.service.impl;

import java.util.List;
import java.util.Map;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import com.iman.common.hibernate.HibernateSupport;
import com.iman.common.hibernate.TemplateQLService;
import com.iman.manjusri.domain.CourseTypeBean;
import com.iman.manjusri.mappers.CourseTypeMapper;
import com.iman.manjusri.service.CourseTypeService;

@Service
public class CourseTypeServiceImpl implements CourseTypeService {

	@Inject
    TemplateQLService  templateQLService;

    @Inject
    HibernateSupport  hibernateSupport;
    
    @Inject
    CourseTypeMapper  courseTypeMapper;
    
	@Override
	public List<CourseTypeBean> getCourseTypeBeanList() {
		//templateQLService.findList("queryName", null);
		return this.courseTypeMapper.courseTypeList();
	}

	@Override
	public List<CourseTypeBean> courseTypeListBySearchMap(
			Map<String, Object> searchMap) {
		
		return this.courseTypeMapper.courseTypeListBySearchMap(searchMap);
	}

}
